//
//  NSData+Extensions.m
//  TweakDemo
//
//  Created by Jiang on 2018/7/18.
//

#import "NSData+Extensions.h"

@implementation NSData (Extensions)
- (NSString *)UTF8String{
    return [[NSString alloc] initWithData:self encoding:NSUTF8StringEncoding];
}
@end


@implementation NSString (Extensions)
-(NSData *)UTF8Data{
    return [self dataUsingEncoding:NSUTF8StringEncoding];
}
@end
